package com.star.starp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author star
 * @since 2022-01-03
 */
@TableName("t_userlog")
public class Userlog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField("uid")
    private Long uid;

    /**
     * ip地址
     */
    @TableField("ip")
    private String ip;

    /**
     * 日志信息
     */
    @TableField("info")
    private String info;

    /**
     * 日志类型（1.注册2.登录3.找回密码）
     */
    @TableField("`type`")
    private Integer type;

    /**
     * 创建时间
     */
    @TableField("cltime")
    private LocalDateTime cltime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public LocalDateTime getCltime() {
        return cltime;
    }

    public void setCltime(LocalDateTime cltime) {
        this.cltime = cltime;
    }

    @Override
    public String toString() {
        return "Userlog{" +
            "id=" + id +
            ", uid=" + uid +
            ", ip=" + ip +
            ", info=" + info +
            ", type=" + type +
            ", cltime=" + cltime +
        "}";
    }
}
